package com.webbei.Backstage.action;

import java.util.HashMap;
import java.util.Map;

import com.webbei.Backstage.service.BackstateSer;

public class UpdateProductionState {
	private BackstateSer bao;
	private String productionState;
	private String orderId;
	private String msg;
	public String execute(){
		Map<String,Object> m = new HashMap<String, Object>();
		m.put("orderId", orderId);
		m.put("productionState", productionState);
		int i = bao.updateProductionState(m);
		if(i==1){
			msg="success";
		}
		return "success";
	}
	public String getProductionState() {
		return productionState;
	}
	public void setProductionState(String productionState) {
		this.productionState = productionState;
	}
	public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	public void setBao(BackstateSer bao) {
		this.bao = bao;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}

}
